import request from "@/utils/request";

// 查询购物车列表
export function listBizShoppingCar(query){
  return request({
    url: "/biz/bizShoppingCar/list",
    method: "get",
    params: query
  })
}

// 查询购物车详细
export function getBizShoppingCar(id){
  return request({
    url: "/biz/bizShoppingCar/" + id,
    method: "get"
  })
}

// 新增购物车
export function addBizShoppingCar(data){
  return request({
    url: "/biz/bizShoppingCar",
    method: "post",
    data: data
  })
}

// 修改购物车
export function updateBizShoppingCar(data){
  return request({
    url: "/biz/bizShoppingCar",
    method: "put",
    data: data
  })
}

// 删除购物车
export function delBizShoppingCar(id){
  return request({
    url: "/biz/bizShoppingCar/" + id,
    method: "delete"
  })
}

// 查询最大编号
export function findMaxSort(){
  return request({
    url: "/biz/bizShoppingCar/findMaxSort",
    method: "get"
  })
}
// 导出购物车
export function exportBizShoppingCar (query){
  return request({
    url: "/biz/bizShoppingCar/export",
    method: "get",
    params: query
  })
}
